from pydantic import BaseModel, Field
from typing import Optional
from schema.baseRequest import BasePageRequest


class LoginParams(BaseModel):
    """登陆需要的参数

    Args:
        BaseModel (_type_): _description_
    """
    
    username: str = Field(..., description="用户名")
    password: str = Field(..., description="密码")


class RegisterParams(BaseModel):
    """注册需要的参数

    Args:
        BaseModel (_type_): _description_
    """
    
    username: str = Field(..., description="用户名")
    password: str = Field(..., description="密码")
    password_confirm: str = Field(..., description="确认密码")

    invitaion_code: Optional[str] = Field(None, description="邀请码")


class GoldLogParams(BasePageRequest):
    pass
